package com.home.biz;

import com.home.base.biz.BaseBiz;
import com.home.base.constant.GlobalConstant;
import com.home.config.InitDataConfig;
import com.home.entity.JobConfig;
import com.home.mapper.JobConfigMapper;
import org.springframework.stereotype.Service;

/**
 * @author ：chenxf
 * @date ：Created in 2019/6/19 9:34
 * @description：任务配置
 * @modified By：
 * @version: $
 */
@Service
public class JobConfigBiz extends BaseBiz<JobConfigMapper, JobConfig> {


    public JobConfig getConfig(){
        return selectById(GlobalConstant.CONFIG_ID);
    }

    public void updateConfig(JobConfig jobConfig){
        //InitDataConfig.updateConfig(jobConfig);

        updateSelectiveById(jobConfig);
       //TODO 更新全局配置
    }
}
